<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
response.setHeader("Pragma","No-cache"); 
response.setHeader("Cache-Control","no-cache"); 
response.setDateHeader("Expires", 0); 
response.flushBuffer();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../jquery-easyui-1.4.5/themes/color.css" />
<script type="text/javascript" src="../jquery-easyui-1.4.5/jquery.min.js"></script>
<script type="text/javascript" src="../jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
<script type="text/javascript">
//var currTabId=parent.currTabId;
//var parentObj=parent.$("#"+currTabId)[0].contentWindow;
window.onload=function(){
//alert(parent.filename)
	//document.getElementById("hlf").value=parent.exportString;
	//document.getElementById("filename").value=parent.filename;
	var printdiv = document.getElementById("printdiv");
    printdiv.innerHTML=parent.exportString;
	//var __o = document.getElementsByTagName("body")[0].appendChild(parent.exportString);  
};


function btnExcel(){
	document.getElementById("type").value="excel";
	document.getElementById("formAction").submit();
}
function btnWord(){
	document.getElementById("type").value="word";
	document.getElementById("formAction").submit();
}
</script>
</head>
<body style="padding:20px; align:center" >
<div id="printdiv"></div>
     <%-- <form id='formAction' action="<%=request.getContextPath()%>/report/exportdate.html"  method="post">
     	<font size="3px">请选择导出类型：</font><br /><br />
     	<input id="dgg" class="easyui-linkbutton" type="button" style="margin-left:30px;" value="Excel" onclick="btnExcel()"/>
     	<input id="dgg" class="easyui-linkbutton" type="button" style="margin-left:80px;" value="Word" onclick="btnWord()"/>
 		<input id="hlf" name='hfs'  type="hidden"/>
 		<input id="type" name='type'  type="hidden"/>
 		<input id="filename" name='filename'  type="hidden"/>
    </form> --%>
</body>
</html>